import Vue from "vue"
import Vuex from "vuex"
// 导入购物车的vuex模块
import moduleCart from '@/store/cart.js'
// 导入用户的模块
import moduleUser from '@/store/user.js'

Vue.use(Vuex)

const store = new Vuex.Store({
	modules:{
		my_cart: moduleCart,
		user: moduleUser
	}
})

export default store